Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple users can share the same gateway server #52

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

wooplevip
Copy link
Contributor

This PR added support for multiple users can share the same gateway server in yarn per-job mode.

  1. Added execution_conf (not required) contains parameter proxyUser to StatementExecuteRequestBody, for example:

    {
     "statement":"SELECT * FROM source",
     "execution_conf":{
       "proxyUser":"user1"
     }
    }
  2. In an insecure cluster, the yarn application will be submitted to cluster by proxyUser if specified.

  3. In a secure cluster, login from keytab via SecurityUtils.install and a proxy user ugi object is created with proxyUser, if proxyUser is not specified, submitted job by login user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant